<?php if($this->thumblist) : ?>
<p>Are you sure you want to delete these photos?</p>
<?php foreach ($this->thumblist as $id => $photoinfo): ?>

<a href="<?php echo $this->escape($photoinfo['url']);?>"><img class="thumb" src="<?php echo $this->escape($photoinfo['thumbnail']);?>"/></a>

<?php endforeach; ?>

<p>This cannot be undone!</p>
<?php echo $this->form ;?>
<?php endif; ?>